package net.wofly.sale.commodity.service.impl;

import net.wofly.sale.commodity.domain.RoleDefaultOrderType;
import net.wofly.sale.commodity.repository.RoleDefaultOrderTypeRepository;
import net.wofly.sale.commodity.service.IRoleDefaultOrderTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service("iRoleDefaultOrderTypeService")
@Transactional
public class RoleDefaultOrderTypeServiceImpl implements IRoleDefaultOrderTypeService {
    
    @Autowired
    RoleDefaultOrderTypeRepository roleDefaultOrderTypeRepository;
    
    @Override
    public RoleDefaultOrderType findByRoleID(String roleID) {
        return roleDefaultOrderTypeRepository.findByRoleID(roleID);
    }
}
